
package {    import flash.display.Sprite;			
    /**     * @author chrisrauh     */    public class Particle extends Sprite {
        public var vx :Number = 0;        public var vy :Number = 0;        public var m :Number = 10;        public var q :Number = 10;        public var index :Number;        public var links :Array;
        public function Particle() {            graphics.beginFill(0xE9D86F, 1);            graphics.drawCircle(0, 0, 4);        }
        public function distance(p :Particle): Number {            var dx :Number = p.x - x;            var dy :Number = p.y - y;            return Math.sqrt(dx * dx + dy * dy);        }
        
        public function angle(p: Particle): Number {
        	return Math.atan2(p.y - y, p.x - x);        }
    }}